package com.ydlclass.Controller;

import com.ydlclass.pojo.dto.PersonDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @Author duWenJian
 * @Date 2024/3/7 14:29
 * @Version 1.0
 */
@RestController
@ResponseBody
public class ConsumerController {
    @PostMapping("test/{msg}")
    public String sayHi(@PathVariable() String msg) {
        return msg;
    }

    @PostMapping("person")
    public PersonDTO PersonMain(@RequestBody PersonDTO dto) {
        return dto;
    }
}
